﻿namespace OConf.NetCore.Options
{
    /// <summary>
    /// 配置加载选项
    /// </summary>
    public class ConfigNameSpaceOptions
    {
        private static List<string> NameSpaceList = new List<string>();
        public ConfigNameSpaceOptions AddNameSpace(string nameSpace)
        {
            if (!NameSpaceList.Any(w => w == nameSpace))
            {
                NameSpaceList.Add(nameSpace);
            }
            return this;
        }

        public static List<string> GetNameSpace()
        {
            return NameSpaceList;
        }
    }
}
